<?php

/**
 * @Project NUKEVIET 3.0
 * @Author VINADES.,JSC (contact@vinades.vn)
 * @Copyright (C) 2010 VINADES.,JSC. All rights reserved
 * @Createdate 2-10-2010 18:49
 */
if (!defined('NV_IS_FILE_ADMIN'))
    die('Stop!!!');
//$contents = nv_show_cat_list( $parentid );
// TODO: install permission table.
if (!defined('CP_PERMISSION_TABLE')) {
    define('CP_PERMISSION_TABLE', 'cp_permissions');
}

$contents = nv_show_permissions();
$xtpl = new XTemplate("permission_man.tpl", NV_ROOTDIR . "/themes/" . $global_config['site_theme'] . "/modules/" . $module_file);
$xtpl->assign('addnew', '#');
$xtpl->assign('contents', $contents);
$xtpl->parse('main');
$contents = $xtpl->text('main');
include ( NV_ROOTDIR . "/includes/header.php" );
echo nv_admin_theme($contents);
include ( NV_ROOTDIR . "/includes/footer.php" );
?>